package day0428.com.factory.singlefac.factory.abstractFactory;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/28 11:47
 * 描述:
 */
public class MainTest {
    public static void main(String[] args) {
        DefaultFactory defaultFactory=new DefaultFactory();
        Food food=defaultFactory.createFood();          //苹果
        Vehicle vehicle=defaultFactory.createVehicle();//汽车
        Weapon weapon=defaultFactory.createWeapon();  // AK47
    }
}
